<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <link rel="shortcut icon" href="../../src/images/bitbug_favicon.ico" type="image/x-icon">
  <meta name="keywords" content="your keywords">
  <meta name="description" content="your description">
  <meta name="author" content="author,email address">
  <meta name="robots" content="index,follow">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <title>仁和区党群服务一号通暨群众意见受理中心</title>
  <link rel="stylesheet" href="../../src/css/base.css">
  <link rel="stylesheet" href="../../src/css/common.css">
  <link rel="stylesheet" href="../../src/css/tpl.css">
  <link rel="stylesheet" href="../../src/css/user_center.css">
  <link rel="stylesheet" href="../../src/css/Goldidea.css">
    <script src="../../src/js/libs/es5-shim.min.js"></script>   <script src="../../src/js/libs/es5-sham.min.js"></script>    <script src="../../src/js/libs/json3.min.js"></script> </head>

<body>
  <div class="page">
    <div id="header"></div>
    <div class="menu-bar">
      <div class="container">
        <span>
                    <span class="crumb-name">当前你的位置：</span>></span><span>
                     <a href="../Home/Index.html">首页</a>>
                </span>
        <span>
                    <a class="" href="">金点子</a>
                </span>
      </div>
    </div>

    <div class="mid_container clearfix">
      <div class="left_guide">
        <h1 class="left_guide_top_size">
          在线民声
        </h1>
        <div class="left_guide_decorate">
        </div>
        <div class="left_about_us">
          THE VOICE OF THE PEOPLE
        </div>
        <div class="left_white_about active">
          <a href="Goldidea.html" class="left_white_bottom"><span class="left_cn_about_us">金点子</span></a>
        </div>
        <div class="left_white_about">
          <a href="Feedback.html" class="left_white_bottom"><span class="left_cn_about_us">建议意见</span></a>
        </div>
        <div class="left_white_about">
          <a href="Notice.html" class="left_white_bottom"><span class="left_cn_about_us">民生投诉</span></a>
        </div>
        <div class="left_white_about">
          <a href="SJMailbox.html" class="left_white_bottom"><span class="left_cn_about_us">书记信箱</span></a>
        </div>
        <div class="left_white_about">
          <a href="QZMailbox.html" class="left_white_bottom"><span class="left_cn_about_us">区长信箱</span></a>
        </div>
        <div class="left_white_about">
          <a href="Demanfar.html" class="left_white_bottom"><span class="left_cn_about_us">来件查询</span></a>
        </div>
      </div>
      <div class="mid_guide">
        <div class="mid_guide_content">
          <div class="content" id="item_html">

          </div>
          <div id="page1" class="laypage"></div>
        </div>
      </div>
    </div>
  </div>
  <div id="footer"></div>
  <script id="item_tpl" type="text/html">
    {{each data val idx}}
    <div class="gold_idea_news">
      <a href="../Feedback/Details.html?id={{val.id}}">
        <div class="clearfix">
          <div class="gold_idea_news_title fl">{{val.title}}</div>
          <div class="gold_idea_news_title_comment fr">{{if commentcount > 0}}{{val.commentcount}}条评论{{/if}}</div>
        </div>
        <div class="gold_idea_news_article">
          <p class="gold_idea_news_article_one">
            {{val.remarks.trim().substr(0,200)}}
            <span class="gold_idea_news_red" href="">阅读全文  ∨</span>
          </p>
        </div>
      </a>
    </div>
    {{/each}} {{if data.length == 0}}
    <div class="empty_box">
      <img src="../../src/images/null_state.png" alt="">
    </div>
    {{/if}}
  </script>
  <script src="../../src/js/libs/jquery.1.12.4.js"></script>
  <script src="../../src/js/libs/template-web.js"></script>
  <script src="../../src/js/libs/laypage/laypage.js"></script>
  <script src="../../src/js/base/common.js"></script>
  <script>
    var params = {
      page: 1
    }

    var pageindex = 4

    getNews(params.page)

    function getNews(page) {
      $.ajax({
        url: 'http://221.10.2.222:5680/api/w1/GoldenIdea/getWebList',
        type: "POST",
        dataType: "json",
        data: {
          PageIndex: page,
          isHome: false
        },
        success: function (res) {
          var item = template('item_tpl', res)
          $('#item_html').html(item)
          laypage({
            cont: 'page1', //容器。值支持id名、原生dom对象，jquery对象。【如该容器为】：<div id="page1"></div>
            pages: Math.ceil(res.count / 6), //通过后台拿到的总页数
            curr: page || 1, //当前页
            first: false,
            last: false,
            prev: '<',
            next: '>',
            jump: function (obj, first) {
              if (!first) {
                getNews(obj.curr);
              }
            }
          });
        }
      })
    }
  </script>
</body>
<script>
</script>

</html>